package com.eascs.admin.o2o.submitted.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.admin.o2o.submitted.dao.O2oLoanSubmittedDao;
import com.eascs.admin.o2o.submitted.entity.O2oLoanSubmittedEntity;
import com.eascs.admin.o2o.submitted.service.IO2oLoanSubmittedService;
import com.eascs.admin.o2o.submitted.vo.O2oLoanSubmittedVo;
import com.eascs.app.dao.PageResult;

@Service
public class O2oLoanSubmittedServiceImple implements IO2oLoanSubmittedService{

	@Autowired
	O2oLoanSubmittedDao o2oLoanSubmittedDao;
	@Override
	public int update(O2oLoanSubmittedEntity submittedEntity) {
		return o2oLoanSubmittedDao.updateById(submittedEntity);
	}

	@Override
	public int add(O2oLoanSubmittedEntity submittedEntity) {
		return o2oLoanSubmittedDao.insert(submittedEntity);
	}

	@Override
	public O2oLoanSubmittedEntity getEntityById(String id) {
		return o2oLoanSubmittedDao.getById(O2oLoanSubmittedEntity.class, id);
	}

	@Override
	public O2oLoanSubmittedEntity getEntityByLoanApplyNo(String loanapplyNo) {
		return o2oLoanSubmittedDao.getEntityByLoanApplyNo(loanapplyNo);
	}

	@Override
	public PageResult<Object[]> queryEntitys(O2oLoanSubmittedVo vo) {
		return o2oLoanSubmittedDao.queryEntitys(vo);
	}
	
	public List<Object[]> findscommon(String code) {
		return o2oLoanSubmittedDao.findscommon(code);
	}

}
